package com.example.stock.init;

import com.example.stock.task.DataInitTask;
import jakarta.annotation.PostConstruct;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Log4j2
@Order(1)
@Component
public class WeekDataInit {

    @Autowired
    DataInitTask task;

    @PostConstruct
    void dataInit() {
        task.genArticleData();
        task.genMonthLpUpData();
        task.genMonthLpDownData();
        task.genFinanceData();
        task.genLevelPointDecreaseData();
        task.genYearPctStatData();
        task.genWeekLpUpData();
        task.genWeekLpNewHighData();
        task.genMonthLpNewHighData();
        task.genWuguData();
        task.genMinYearPctData();

        //==========
        task.initStockHold();
        task.initLastOpt();
        task.initWugu();
        task.initWeekLowSta();
    }
}
